import pymongo

class DBManager(object):
    """Basic interface to database"""
    host="localhost"
    port=27017
    dbname="ppdb"

    def __init__(self):
        self.connection = None
        self.database = None
        self._make_connection()

    def _make_connection(self):
        self.connection = pymongo.Connection(self.host,self.port)
        self.database = self.connection[self.dbname]



